package com.chess.core;

import java.util.ArrayList;

public class ChessPieceSet extends ArrayList<ChessPiece> {
	private static final long serialVersionUID = 1L;
	ChessPieceColor color;
	public ChessPieceSet(ChessPieceColor color) {
		this.color = color;
		add(new ChessPiece(color, ChessPieceType.ROOK));
		add(new ChessPiece(color, ChessPieceType.KNIGHT));
		add(new ChessPiece(color, ChessPieceType.BISHOP));
		add(new ChessPiece(color, ChessPieceType.QUEEN));
		add(new ChessPiece(color, ChessPieceType.KING));
		add(new ChessPiece(color, ChessPieceType.BISHOP));
		add(new ChessPiece(color, ChessPieceType.KNIGHT));
		add(new ChessPiece(color, ChessPieceType.ROOK));
		for(int i = 8; i < 16; i++)
			add(new ChessPiece(color, ChessPieceType.PAWN));
	}
}
